package org.huhuiyu.easyui.dao;

import java.util.List;
import org.huhuiyu.easyui.enity.EmployeeModel;

/**
 * EmployeeModel的数据访问接口类
 */
public interface EmployeeDAO {

	/**
	 * 保存EmployeeModel数据
	 * 
	 * @param employeeModel
	 *            实体数据
	 * @throws Exception
	 */
	public void saveEmployeeModel(EmployeeModel employeeModel) throws Exception;

	/**
	 * 修改EmployeeModel数据
	 * 
	 * @param employeeModel
	 *            实体数据
	 * @throws Exception
	 */
	public void updateEmployeeModel(EmployeeModel employeeModel)
			throws Exception;

	/**
	 * 删除EmployeeModel数据
	 * 
	 * @param employeeModel
	 *            实体数据
	 * @throws Exception
	 */
	public void deleteEmployeeModel(EmployeeModel employeeModel)
			throws Exception;

	/**
	 * 按照主键查询EmployeeModel数据
	 * 
	 * @param employeeModel
	 *            带主键数据的实体数据
	 * @return 主键查询结果，没有值返回null
	 * @throws Exception
	 */
	public EmployeeModel queryEmployeeModelByKey(EmployeeModel employeeModel)
			throws Exception;

	/**
	 * 查询全部的EmployeeModel数据
	 * 
	 * @return 全部的EmployeeModel数据
	 * @throws Exception
	 */
	public List<EmployeeModel> queryAllEmployeeModel() throws Exception;

	public abstract List<EmployeeModel> queryPageEmployeeModel(int start,
			int limit) throws Exception;

	public abstract int queryEmployeeModelCount() throws Exception;
}
